/* 按钮流光动画样式 */
.btn.processing {
  position: relative;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.7;
}

.btn.processing::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  animation: shimmer 1.5s infinite;
  z-index: 1;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* 按钮禁用状态 */
.btn.processing:disabled {
  background: #d9d9d9 !important;
  color: #999 !important;
  cursor: not-allowed !important;
}

/* 不同按钮类型的流光颜色 */
.btn-primary.processing::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
}

.btn-success.processing::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
}

.btn-danger.processing::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
}
